import connect from "connect"
import {blue,green} from "picocolors";
import {optimize} from "../optimizer";

export async function startDevServer(){
    const app = await connect();
    const root = process.cwd();
    const startTime = Date.now();
    app.listen(3000,async () => {
        await optimize(root)
    });
    console.log(`> 本地访问路径: ${blue("http://localhost:3000")}`);
}
